class Student{
  private int age;
  private String name;
  private String sex;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void Print(){
        System.out.println("age:"+age+" "+"name："+name+"sex："+sex);
    }
}
class Demo{
    public static void main(String[] args) {
        Student stu1=new Student();
        stu1.setAge(12);
        System.out.println(stu1.getAge());
        stu1.setName("zhangsan");
        System.out.println(stu1.getName());
        stu1.setSex("male");
        System.out.println(stu1.getSex());
        stu1.Print();
    }
}
